package com.tancire.net.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 认证应用（资源）信息对象 auth_info
 *
 * @author chenchao
 * @date 2023-11-18
 */
public class AuthInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 资源编码
     */
    @Excel(name = "资源编码")
    private String sourceCode;

    /**
     * 资源名称
     */
    @Excel(name = "资源名称")
    private String sourceName;

    /**
     * 资源部门
     */
    @Excel(name = "资源部门")
    private Long sourceDept;

    /**
     * 资源部门表
     */
    @Excel(name = "资源部门表")
    private String sourceDeptName;

    /**
     * 资源认证类型0、简单授权 1、调用校验授权 2、加密授权 3、加密调用校验授权
     */
    @Excel(name = "资源认证类型")
    private String sourceAuthType;

    /**
     * 资源密钥
     */
    @Excel(name = "资源密钥 ")
    private String sourcePassword;

    /**
     * 资源公钥
     */
    @Excel(name = "资源公钥  ")
    private String sourcePublicKey;

    /**
     * 资源私钥
     */
    @Excel(name = "资源私钥 ")
    private String sourcePrivateKey;

    /**
     * 资源认证有效期(秒)
     */
    @Excel(name = "资源认证有效期(秒)  ")
    private Integer sourceAuthTime;

    /**
     * 资源授权类型 0 仅积分 1 仅现金 2 积分现金可选
     */
    @Excel(name = "资源授权类型 0 仅积分 1 仅现金 2 积分现金可选")
    private String sourcePayType;

    /**
     * 资源授权积分
     */
    @Excel(name = "资源授权积分")
    private BigDecimal sourceAuthFee;

    /**
     * 资源现金金额
     */
    @Excel(name = "资源现金金额")
    private BigDecimal sourcePrice;

    /**
     * 是否展示插屏广告 0 否 1 是
     */
    @Excel(name = "是否展示插屏广告 0 否 1 是")
    private Integer sourceAdCp;

    /**
     * 所属企业
     */
    @Excel(name = "所属企业")
    private Long belongCompany;

    /**
     * 所属企业名称
     */
    @Excel(name = "所属企业名称")
    private String belongCompanyName;

    /**
     * 0 正常  1 删除  真删除，字段保留
     */
    private Integer delFlag;

    /**
     * 资源所属 0 内部 1 客户
     */
    private Integer sourceBelong;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceDept(Long sourceDept) {
        this.sourceDept = sourceDept;
    }

    public Long getSourceDept() {
        return sourceDept;
    }

    public void setSourceDeptName(String sourceDeptName) {
        this.sourceDeptName = sourceDeptName;
    }

    public String getSourceDeptName() {
        return sourceDeptName;
    }

    public void setSourceAuthType(String sourceAuthType) {
        this.sourceAuthType = sourceAuthType;
    }

    public String getSourceAuthType() {
        return sourceAuthType;
    }

    public void setSourcePassword(String sourcePassword) {
        this.sourcePassword = sourcePassword;
    }

    public String getSourcePassword() {
        return sourcePassword;
    }

    public void setSourcePublicKey(String sourcePublicKey) {
        this.sourcePublicKey = sourcePublicKey;
    }

    public String getSourcePublicKey() {
        return sourcePublicKey;
    }

    public void setSourcePrivateKey(String sourcePrivateKey) {
        this.sourcePrivateKey = sourcePrivateKey;
    }

    public String getSourcePrivateKey() {
        return sourcePrivateKey;
    }

    public void setSourceAuthTime(Integer sourceAuthTime) {
        this.sourceAuthTime = sourceAuthTime;
    }

    public Integer getSourceAuthTime() {
        return sourceAuthTime;
    }

    public void setSourcePayType(String sourcePayType) {
        this.sourcePayType = sourcePayType;
    }

    public String getSourcePayType() {
        return sourcePayType;
    }

    public void setSourceAuthFee(BigDecimal sourceAuthFee) {
        this.sourceAuthFee = sourceAuthFee;
    }

    public BigDecimal getSourceAuthFee() {
        return sourceAuthFee;
    }

    public void setSourcePrice(BigDecimal sourcePrice) {
        this.sourcePrice = sourcePrice;
    }

    public BigDecimal getSourcePrice() {
        return sourcePrice;
    }

    public void setSourceAdCp(Integer sourceAdCp) {
        this.sourceAdCp = sourceAdCp;
    }

    public Integer getSourceAdCp() {
        return sourceAdCp;
    }

    public void setBelongCompany(Long belongCompany) {
        this.belongCompany = belongCompany;
    }

    public Long getBelongCompany() {
        return belongCompany;
    }

    public void setBelongCompanyName(String belongCompanyName) {
        this.belongCompanyName = belongCompanyName;
    }

    public String getBelongCompanyName() {
        return belongCompanyName;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public Integer getSourceBelong() {
        return sourceBelong;
    }

    public void setSourceBelong(Integer sourceBelong) {
        this.sourceBelong = sourceBelong;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sourceCode", getSourceCode())
                .append("sourceName", getSourceName())
                .append("sourceDept", getSourceDept())
                .append("sourceDeptName", getSourceDeptName())
                .append("sourceAuthType", getSourceAuthType())
                .append("sourcePassword", getSourcePassword())
                .append("sourcePublicKey", getSourcePublicKey())
                .append("sourcePrivateKey", getSourcePrivateKey())
                .append("sourceAuthTime", getSourceAuthTime())
                .append("sourcePayType", getSourcePayType())
                .append("sourceAuthFee", getSourceAuthFee())
                .append("sourcePrice", getSourcePrice())
                .append("sourceAdCp", getSourceAdCp())
                .append("belongCompany", getBelongCompany())
                .append("belongCompanyName", getBelongCompanyName())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
